//package edu.gym4all.data.sqlite.android.init;
//
//import android.content.Context;
//import android.database.SQLException;
//import android.database.sqlite.SQLiteDatabase;
//import android.database.sqlite.SQLiteOpenHelper;
//import android.util.Log;
//
//public class SQLiteExerciseInit extends SQLiteOpenHelper {
//
//	public static final String TB_EXERCISE = "tb_exercise";
//	public static final String COD_EXERCISE = "cod_exercise";
//	public static final String EXERCISE_NOME = "name";
//	private static final String DATABASE_NAME = "gym4all";
//	private static final String EXERCISE_REPS = "repetitions";
//	private static final String EXERCISE_SERIES = "series";
//	private static final String EXERCISE_TIME = "time";
//	private static final String MUSCLE_TYPE = "muscle_type";
//	private static final String EXERCISE_TYPE = "exercise_type";
//	private static final int DATABASE_VERSION = 1;
//
//	private final Context context;
//
//	private static final String CREATE_EXERCISE_TB = "create table "
//			+ TB_EXERCISE + "( " + COD_EXERCISE
//			+ " integer primary key autoincrement, " + EXERCISE_NOME
//			+ " text not null," + EXERCISE_REPS + ", " + EXERCISE_SERIES + ", "
//			+ EXERCISE_TIME + ", " + MUSCLE_TYPE + ", " + EXERCISE_TYPE + ");";
//
//	public SQLiteExerciseInit(Context context) {
//		super(context, DATABASE_NAME, null, DATABASE_VERSION);
//		this.context = context;
//	}
//
//	@Override
//	public void onCreate(SQLiteDatabase db) {
//		db.beginTransaction();
//		try {
//			db.execSQL(CREATE_EXERCISE_TB);
//			db.setTransactionSuccessful();
//		} catch (SQLException e) {
//			Log.e("Erro ao criar as tabelas e testar os dados", e.toString());
//		} finally {
//			db.endTransaction();
//		}
//	}
//
//	@Override
//	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
//		// TODO Auto-generated method stub
//	}
// }